﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UsrAccount.ascx.cs" Inherits="BanhangOnline.BackEnd.UsrAccount" %>
<asp:DataGrid ID="grdAccount" runat="server" AutoGenerateColumns="False" 
    Width="100%" CellPadding="4" BackColor="White" BorderColor="#3366CC" 
    BorderStyle="None" BorderWidth="1px" ShowFooter="true" 
    onitemdatabound="grdAccount_ItemDataBound">
    <Columns>
        <asp:TemplateColumn>
            <HeaderTemplate>Id</HeaderTemplate>
            <ItemTemplate><%#Eval("Id") %></ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn>
            <HeaderTemplate>Username</HeaderTemplate>
            <ItemTemplate><%#Eval("Username") %></ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn>
            <HeaderTemplate>UserRole</HeaderTemplate>
            <ItemTemplate><asp:DropDownList ID="cboUserRole" runat="server"></asp:DropDownList></ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn>
            <HeaderTemplate>Email</HeaderTemplate>
            <ItemTemplate><asp:TextBox ID="txtEmail" runat="server" Text='<%#Eval("Email") %>'></asp:TextBox></ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn>
            <HeaderTemplate>Mobile</HeaderTemplate>
            <ItemTemplate><asp:TextBox ID="txtMobile" runat="server" Text='<%#Eval("Mobile") %>'></asp:TextBox></ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn>
            <HeaderTemplate>Gender</HeaderTemplate>
            <ItemTemplate><asp:DropDownList ID="cboGender" runat="server"></asp:DropDownList></ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn>
            <HeaderTemplate>Company</HeaderTemplate>
            <ItemTemplate><asp:DropDownList ID="cboCompany" runat="server"></asp:DropDownList></ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn>
            <ItemTemplate>
                <asp:ImageButton ID="btnUpdate" runat="server" ImageUrl='<%#FilePath.IconEdit %>'
                    CommandName="cmdUpdate" CommandArgument='<%#Eval("Id") %>' />
                <asp:ImageButton ID="btnDelete" runat="server" ImageUrl='<%#FilePath.IconDelete %>'
                    CommandName="cmdDelete" CommandArgument='<%#Eval("Id") %>' />
            </ItemTemplate>
            <FooterTemplate>
                <asp:ImageButton ID="btnAddNew" runat="server" ImageUrl='<%#FilePath.IconAddNew %>'
                    CommandName="cmdAddNew" Text="AddNew" /></FooterTemplate>
        </asp:TemplateColumn>
    </Columns>
    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" HorizontalAlign="Center" />
    <ItemStyle BackColor="White" ForeColor="#003399" />
    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" 
        Mode="NumericPages" />
    <SelectedItemStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
</asp:DataGrid>